using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;using THSERP.BusinessEntities;using THSERP.BaseProvider;

namespace THSERP.Modules.SaleReturn.UI
{
	/// <summary>
	/// Summary description for DMPS100
	/// </summary>
	public partial class DMPS100 : THSERPScreen
	{

		public DMPS100()
		{
			//
			// Required designer variable
			//
			InitializeComponent();
		}

        private void fld_lkeFK_HREmployeeID_Validated(object sender, EventArgs e)
        {
            ((Modules.SaleReturn.SaleReturnModule)this.Module).Staff_Validated(sender, e);
        }

        private void fld_lblViewCustomer_Click(object sender, EventArgs e)
        {
            ((Modules.SaleReturn.SaleReturnModule)this.Module).SetDefaultValuesFromCustomer();
        }

        private void fld_lblEditCustomer_Click(object sender, EventArgs e)
        {
            ((Modules.SaleReturn.SaleReturnModule)this.Module).EditCustomer();
        }

        private void fld_lkeFK_ICProductAttributeID_Validated(object sender, EventArgs e)
        {
            ((Modules.SaleReturn.SaleReturnModule)this.Module).THSProductLookupEdit_Validated(sender, e);
        }

        private void fld_btnButton2_Click(object sender, EventArgs e)
        {
            ((Modules.SaleReturn.SaleReturnModule)this.Module).AddItemToSaleReturnItemsList();
        }

        private void fld_btnButton3_Click(object sender, EventArgs e)
        {
            ((Modules.SaleReturn.SaleReturnModule)this.Module).ChangeItemFromSaleReturnItemsList();
        }

        private void fld_btnButton4_Click(object sender, EventArgs e)
        {
            ((Modules.SaleReturn.SaleReturnModule)this.Module).DeleteItemFromSaleReturnItemsList();
        }

        private void fld_txtARSaleReturnDiscountFix_Validated(object sender, EventArgs e)
        {
            ((Modules.SaleReturn.SaleReturnModule)this.Module).ChangeDiscountAmount();
        }

        private void fld_btnComplete_Click(object sender, EventArgs e)
        {
            ((Modules.SaleReturn.SaleReturnModule)this.Module).ActionComplete();
        }

        private void fld_btnCompletePrint_Click(object sender, EventArgs e)
        {
            ((Modules.SaleReturn.SaleReturnModule)this.Module).ActionCompletePrint();
        }

        private void fld_btnAcceptPayment_Click(object sender, EventArgs e)
        {
            ((Modules.SaleReturn.SaleReturnModule)this.Module).AcceptPayment();
        }

        private void fld_txtARSaleReturnDiscountPerCent_Validated(object sender, EventArgs e)
        {
            ((Modules.SaleReturn.SaleReturnModule)this.Module).ChangeDiscountPercent();
        }
	}
}
